home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / backface.z / backface
Encoding:
Text File  |  2002-10-03  |  2.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. bbbbaaaacccckkkkffffaaaacccceeee((((3333GGGG))))                                                      bbbbaaaacccckkkkffffaaaacccceeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      bbbbaaaacccckkkkffffaaaacccceeee - turns backfacing polygon removal on and off
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd bbbbaaaacccckkkkffffaaaacccceeee((((bbbb))))
  13.      BBBBoooooooolllleeeeaaaannnn bbbb;;;;
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _b   expects either TRUE or FALSE.
  17.  
  18.          TTTTRRRRUUUUEEEE suppresses the display of backfacing filled polygons.
  19.  
  20.          FFFFAAAALLLLSSSSEEEE allows the display of backfacing filled polygons.
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      bbbbaaaacccckkkkffffaaaacccceeee allows or suppresses the display of backfacing filled polygons.
  24.      If your programs represent solid objects as collections of polygons, you
  25.      can use this routine to remove hidden surfaces.  This routine works best
  26.      for simple convex objects that do not obscure other objects.
  27.  
  28.      A backfacing polygon is defined as a polygon whose vertices are in
  29.      clockwise order in screen coordinates.  When backfacing polygon removal
  30.      is on, the system displays only polygons whose vertices are in counter-
  31.      clockwise order.  For complicated objects, this routine alone may not
  32.      remove all hidden surfaces. To remove hidden surfaces for more
  33.      complicated objects or groups of objects, your routine needs to check the
  34.      relative distances of the object from the viewer (_z values).  (See
  35.      ``Hidden Surface Removal'' in the _G_r_a_p_h_i_c_s _L_i_b_r_a_r_y _P_r_o_g_r_a_m_m_i_n_g _G_u_i_d_e.)
  36.  
  37. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  38.      zbuffer
  39.  
  40. NNNNOOOOTTTTEEEESSSS
  41.      Matrices that negate coordinates, such as ssssccccaaaalllleeee((((----1111....0000,,,, 1111....0000,,,, 1111....0000)))), reverse
  42.      the directional order of a polygon's points and can cause bbbbaaaacccckkkkffffaaaacccceeee to do
  43.      the opposite of what is intended.
  44.  
  45.      On IRIS-4D B and G models bbbbaaaacccckkkkffffaaaacccceeee does not work well when a polygon
  46.      shrinks to the point where its vertices are coincident.  Under these
  47.      conditions, the routine cannot determine the orientation of the polygon
  48.      and so displays the polygon by default.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.